package com.holly.unit.deform.designer.core.validator;

import com.alibaba.fastjson.annotation.JSONField;
import com.holly.unit.deform.designer.model.Rule;

import java.util.List;

/**
 * 类描述: 字段验证结果
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/8/4 8:11
 */
public class FieldValidator {

    /**
     * 字段名称
     */
    private String fieldName ;

    /**
     * key
     */
    private String model ;

    /**
     * 类型
     */
    private String type ;

    /**
     * 结果
     */

    @JSONField(serialize=false)
    private Boolean result ;

    /**
     * 描述
     */
    private String message ;


    @JSONField(serialize=false)
    private Rule rule ;



    /**
     *  针对batch这种字段得下一级验证结果
     */
    private List<BatchListValidator> child;

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Rule getRule() {
        return rule;
    }

    public void setRule(Rule rule) {
        this.rule = rule;
    }

    public List<BatchListValidator> getChild() {
        return child;
    }

    public void setChild(List<BatchListValidator> child) {
        this.child = child;
    }
}
